package com.catsic.logs.convert;

import com.catsic.logs.entity.Logs;
import com.catsic.logs.form.LogsForm;

public class Converts {
	public static LogsForm convert(Logs logs){  
		LogsForm logsForm = new LogsForm();
		logsForm.setId(logs.getId());
		logsForm.setCreateName(logs.getCreateName());
		logsForm.setOrganCode(logs.getOrganCode());
		logsForm.setOrganName(logs.getOrganName());
		logsForm.setModule(logs.getModule());
		logsForm.setOperation(logs.getOperation());
		logsForm.setContent(logs.getContent());
		logsForm.setIp(logs.getIp());
		logsForm.setCreateTime(logs.getCreateTime().toDate());
		return logsForm;
	}
}
